/*
 * Powered By 
 * Since 2010 - 2016
 */

package com.rf.sys.service;

import java.util.List;
import java.util.Map;

import com.rf.sys.model.Dictionary;
import com.rf.sys.utils.PageUtils;

public interface DictionaryService{
	
	/**
	 * 根据id获取数据
	 * @param dictionaryId
	 * @return Dictionary
	 */
	public Dictionary getDictionaryByID(String id) throws Exception;
	
	/**
	 * 根据Dictionary获取数据
	 * @param Dictionary
	 * @return List<Dictionary>
	 */
	public List<Dictionary> getDictionary(Dictionary dictionary) throws Exception;
	
	/**
	 * 获取所有数据
	 * @param 
	 * @return List<Dictionary>
	 */
	public List<Dictionary> getDictionary() throws Exception;
	
	/**
	 * 根据datakey查询内容，不包含datavalue
	 * @param datakey
	 * @param datavalue
	 * @return
	 */
	public List<Dictionary> getDictionaryByDatakey(String classCode,List<String> exceptDataCode);
	
	/**
	 * 保存信息
	 * @param Dictionary
	 * @return
	 */
	public void addDictionary(Dictionary dictionary) throws Exception;
	
	/**
	 * 修改数据
	 * @param Dictionary
	 * @return
	 */
	public void updateDictionary(Dictionary dictionary) throws Exception;
	
	/**
	 * 删除数据
	 * @param dictionaryId
	 * @return
	 */
	public void deleteDictionary(String id) throws Exception;
	
	/**
	 * 删除数据
	 * @param ids
	 * @return
	 */
	public void deleteDictionaryState(String ids) throws Exception;
	
	/**
	 * 获取数据分页
	 * @param Dictionary
	 * @param limit
	 * @param offset
	 * @return Map
	 */
	public Map getDictionaryPage(Dictionary dictionary,PageUtils pageUtils) throws Exception;
}
